An Introduction To Mean Field Theory